package dproxy.server.common.xml.to;

import java.io.Serializable;
import java.util.Map;

/**
 * Configuration loaded from XML. Represents an:
 * [protocol]
 *      [description /]
 *      [protocol-name /]
 *      [protocol-class /]
 *      *[init-param /]
 *  [/protocol].
 */
public class ProtocolConfig implements Serializable {

    /** Protocol description. */
    private String description;
    
    /** Protocol name. */
    private String protocolName;
    
    /** Protocol implementation class. */
    private String protocolClass;
    
    /** Initialization parameters. */
    private Map<String, String> initParams;

    /**
     * @return Returns the description.
     */
    public String getDescription() {
        return description;
    }

    /**
     * @param description The description to set.
     */
    public void setDescription(String description) {
        this.description = description;
    }

    /**
     * @return Returns the initParams.
     */
    public Map<String, String> getInitParams() {
        return initParams;
    }

    /**
     * @param initParams The initParams to set.
     */
    public void setInitParams(Map<String, String> initParams) {
        this.initParams = initParams;
    }

    /**
     * @return Returns the protocolClass.
     */
    public String getProtocolClass() {
        return protocolClass;
    }

    /**
     * @param protocolClass The protocolClass to set.
     */
    public void setProtocolClass(String protocolClass) {
        this.protocolClass = protocolClass;
    }

    /**
     * @return Returns the protocolName.
     */
    public String getProtocolName() {
        return protocolName;
    }

    /**
     * @param protocolName The protocolName to set.
     */
    public void setProtocolName(String protocolName) {
        this.protocolName = protocolName;
    }
    
}
